package com.qf.md.item.controller;

import com.qf.common.PageParam;
import com.qf.common.PageVO;
import com.qf.common.R;
import com.qf.md.item.service.MdItemService;
import com.qf.md.item.vo.ItemVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/md/item")
public class MdItemController {
    @Autowired
    @Qualifier("mis")
    private MdItemService mdItemService;

    @GetMapping("/list")
    public R<PageVO<ItemVo>> findItemVO(PageParam param){
        PageVO<ItemVo> pageVO = mdItemService.findItemVO(param);
        return R.ok(pageVO);

    }
}
